package com.jfinal.dingtalk.api;

import com.jfinal.dingtalk.api.base.BaseApi;
import com.jfinal.dingtalk.utils.ParaMap;

import java.util.Map;

/**
 * Created by L.cm on 2016/6/3.
 */
public class AccessTokenApi extends BaseApi {

    public ApiResult getToken() {
        Map<String, Object> data = ParaMap
                .create("corpid", "corpid")
                .put("corpsecret", "corpsecret")
                .getData();

        return get("api.gettoken", data);
    }

}
